const alibaseUrl = 'https://lk-shuzhizhongtai-common.oss-cn-beijing.aliyuncs.com/'

function handleBreakfast(obj) {
  let breakfast = []
  breakfast.push({
    name: obj.recipe_type_md.recipeName,
    img: alibaseUrl + obj.recipe_type_md.img
  })
  breakfast.push({
    name: obj.recipe_type_sc.recipeName,
    img: alibaseUrl + obj.recipe_type_sc.img
  })
  breakfast.push({
    name: obj.recipe_type_zc.recipeName,
    img: alibaseUrl + obj.recipe_type_zc.img
  })
  return breakfast
 
}
function handleLunch(obj) {
  let lunch = []
  lunch.push({
    name: obj.recipe_type_zs.recipeName,
    img: alibaseUrl + obj.recipe_type_zs.img
  })
  lunch.push({
    name: obj.recipe_type_sc.recipeName,
    img: alibaseUrl + obj.recipe_type_sc.img
  })
  lunch.push({
    name: obj.recipe_type_zc.recipeName,
    img: alibaseUrl + obj.recipe_type_zc.img
  })
  lunch.push({
    name: obj.recipe_type_t.recipeName,
    img: alibaseUrl + obj.recipe_type_t.img
  })
  return lunch
 
}
function handleDinner(obj) {
  let dinner = []
  dinner.push({
    name: obj.recipe_type_zs.recipeName,
    img: alibaseUrl + obj.recipe_type_zs.img
  })
  dinner.push({
    name: obj.recipe_type_sc.recipeName,
    img: alibaseUrl + obj.recipe_type_sc.img
  })
  dinner.push({
    name: obj.recipe_type_fc.recipeName,
    img: alibaseUrl + obj.recipe_type_fc.img
  })
  dinner.push({
    name: obj.recipe_type_t.recipeName,
    img: alibaseUrl + obj.recipe_type_t.img
  })
  return dinner
 
}


export default {
  handleBreakfast,
  handleLunch,
  handleDinner
}